package test;

import core.JitReset;
import org.junit.Test;
import repository.Repository;

import java.io.IOException;


public class JitResetTest {
    @Test
    public void testHash(){
        System.out.println("JitReset测试如下");
        String jitPath = "D:\\git\\test";
        String commitID = "ec063b2bf8ee568e4c9d3283gwa9lbdc85588f11e";
        String mode = "--mixed";
        try {
            Repository repo = new Repository(jitPath);
        } catch (IOException e) {
            e.printStackTrace();
        }
        try{
            JitReset.reset(mode, commitID);
        }
        catch (Exception e){
            e.printStackTrace();
        }
    }
}